package com.itheima.exer.exercise.ex0925;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class SetDate1 {
    public static void main(String[] args) {
        LocalDateTime nowTime = LocalDateTime.now();
        System.out.println("跳转到"+nowTime.withYear(2022).withMonth(5).withDayOfMonth(16).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
    }
}
